package cn.wolfcode.wms.service.impl;

import cn.wolfcode.wms.domain.Brand;
import cn.wolfcode.wms.mapper.BrandMapper;
import cn.wolfcode.wms.mapper.ChartMapper;
import cn.wolfcode.wms.qo.OrederChartQuery;
import cn.wolfcode.wms.qo.QueryObject;
import cn.wolfcode.wms.service.IBrandService;
import cn.wolfcode.wms.service.IChartService;
import cn.wolfcode.wms.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ChartServiceImpl implements IChartService {
    @Autowired
    private ChartMapper chartMapper;

    @Override
    public List<Map<String, Object>> querySaleChart(QueryObject qo) {
        List<Map<String, Object>> list = chartMapper.querySaleChart(qo);
        return list;
    }

    @Override
    public List<Map<String, Object>> queryOrderChart(QueryObject qo) {
        List<Map<String, Object>> list = chartMapper.queryOrderChart(qo);
        return list;
    }
}
